//@flow

/**
 * 组件基类
 */

import React, { Component } from 'react';
import { 
    View,
    Text,
 } from 'react-native';

export class ComponentBase extends Component<{},{}>{
    constructor(props){
        super(props)
    }
    componentDidCatch(error, info){
        alert(`组件:${this}\nerror:${error}\ninfo:${info}`)
    }
    render(){
        return (
            <View>
                <Text>hello </Text>
            </View>
        )
    }
}